package com.sdu.douban_comment.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;


@Document(collection = "test_comment")
public class Film {

    @Id
    @MongoId
    private String id;

    @JSONField(name = "电影名")
    private String fileName;

    @JSONField(name = "导演")
    private String[] director;

    @JSONField(name = "编剧")
    private String[] screenWriter;

    @JSONField(name = "主演")
    private String[] actors;

    @JSONField(name = "类型")
    private String[] type;

    @JSONField(name = "制片国家")
    private String[] productionCty;

    @JSONField(name = "语言")
    private String[] language;

    @JSONField(name = "上映日期")
    private String releaseDate;

    public String getReleaseDateFormat() {
        return releaseDateFormat;
    }

    public void setReleaseDateFormat(String releaseDateFormat) {
        this.releaseDateFormat = releaseDateFormat;
    }

    private String releaseDateFormat;

    @JSONField(name = "电影时长")
    private String duration;

    @JSONField(name = "相关电影")
    private String[] relateFilms;


    private Comment comment;

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String[] getDirector() {
        return director;
    }

    public String[] getActors() {
        return actors;
    }

    public void setActors(String[] actors) {
        this.actors = actors;
    }

    public void setDirector(String[] director) {
        this.director = director;
    }

    public String[] getScreenWriter() {
        return screenWriter;
    }

    public void setScreenWriter(String[] screenWriter) {
        this.screenWriter = screenWriter;
    }

    public String[] getType() {
        return type;
    }

    public void setType(String[] type) {
        this.type = type;
    }

    public String[] getProductionCty() {
        return productionCty;
    }

    public void setProductionCty(String[] productionCty) {
        this.productionCty = productionCty;
    }

    public String[] getLanguage() {
        return language;
    }

    public void setLanguage(String[] language) {
        this.language = language;
    }

    public String getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(String releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String[] getRelateFilms() {
        return relateFilms;
    }

    public void setRelateFilms(String[] relateFilms) {
        this.relateFilms = relateFilms;
    }
}
